﻿using System;
using System.Collections.Generic;
using System.Text;

namespace WodLib
{
    [Serializable()]
    public class Vehicle : Item
    {
        public int Speed
        {
            get;
            set;
        }

        public int Acceleration
        {
            get;
            set;
        }

        public int Handling
        {
            get
            {
                return this.DiceBonus;
            }
            set
            {
                this.DiceBonus = value;
            }
        }

        public int BlownTires
        {
            get;
            set;
        }

        public override int DiceBonus
        {
            get
            {
                return base.DiceBonus - 2*BlownTires;
            }
            set
            {
                base.DiceBonus = value;
            }
        }
    }
}
